package com.spider.spiderflowable.business.enums;

/**
 * @author xiong.bo
 * @version 1.0
 * @date 2025/4/20 3:56 下午
 */
public enum RequestTypeEnum {

  REQUEST_ABNORMAL_CLOSE("request_abnormal_close", "非正常关单申请"),
  ;

  private String code;
  private String name;

  RequestTypeEnum(String code, String name) {
    this.code = code;
    this.name = name;
  }

  public static String getDescByCode(String code) {
    for (RequestTypeEnum eventStatusEnum : values()) {
      if (eventStatusEnum.getCode().equals(code)) {
        return eventStatusEnum.getName();
      }
    }
    return "";
  }

  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

}
